package game.hiram;

public class Equipment extends Item {
	private int strengthBonus;
	private int attackBonus;
	public Type type;
	public Equipment() {
		type = Type.getType(getID());
	}
	public Type getType() {
		return type;
	}
	public enum Type {
		Boots, Plate, Legs, Gloves, Weapon, Necklace, Ring, Helm, Ammunition, Offhand;
		public static Type getType(int i) {
			switch (i % 10) {
			case 0:
				return Boots;
			case 1:
				return Plate;
			case 2:
				return Legs;
			case 3:
				return Gloves;
			case 4:
				return Weapon;
			case 5:
				return Necklace;
			case 6:
				return Ring;
			case 7:
				return Helm;
			case 8:
				return Ammunition;
			case 9:
				return Offhand;
			}
			return null;
		}
	}
}
